package com.hch.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

/**
 * @author ${author}
 * @version ${version}
 * @description TODO
 * @date 2024/7/24 12:52
 */

@CommandLine.Command(name = "list", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable{


    @Override
    public void run() {
        String absolutePath = "${fileConfig.inputRootPath}";
        List<File> files = FileUtil.loopFiles(absolutePath);
        for (File file : files) {
            System.out.println(file);
        }
    }
}
